<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/8
 * Time: 10:08
 */

namespace app\index\controller;
/**
 * Created by SNWAY.
 * User: w
 * Date: 2017/5/26
 * Time: 12:06
 */
use think\Session;
use think\Controller;

class Base   extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if (!Session('Login_userId') && !Session('Login_userName')) {
             $this->redirect('/login');die;
        } else {
            //已登录
         //   session::delete('Login_userId');  session::delete('Login_userName'); session::delete('Login_mobile');
        }
    }
}